home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / MAINT.MAK < prev    next >
Text File  |  1992-03-25  |  6KB  |  205 lines

  1. #    Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Auxiliary MS-DOS makefile for maintenance operations.
  21.  
  22. # This file pertains to Aladdin Enterprises maintenance operations,
  23. # and is unlikely to be useful to users.
  24.  
  25. DRIVE=a:
  26. LABEL=032592
  27.  
  28. # Targets:
  29. #    xmit -- make the .BE files for Kermit transmission
  30. #    xfer -- make a diskette for transferring files to the Sun
  31. #    release -- make the .BE files for a release
  32. #    diskette -- make a MS-DOS diskette set
  33. # Remember to erase *.zip / *.z / *.be, if needed, before running these.
  34.  
  35. # ---------------- Make files for Kermit transmission ----------------
  36.  
  37. TARS=tar1.be tar2.be tar3a.be tar3b.be tar3c.be tar4a.be tar4b.be tar5.be tar6.be tar7.be
  38.  
  39. xmit: $(TARS)
  40.  
  41. xfer: tar1.z tar2.z tar3a.z tar3b.z tar3c.z tar4a.z tar4b.z \
  42.   tar5.z tar6.z tar7.z
  43.     @echo ---------------- Insert diskette:
  44.     @command /c pause
  45.     xcopy tar_x a:
  46.     xcopy tar*.z a:
  47.  
  48. release: $(TARS) tar0.be
  49.  
  50. # The dependency lists for the .be files should be much longer!
  51.  
  52. .z.be:
  53.     bed $*.z $*.be
  54.     erase $*.z
  55.  
  56. tar0.z: gs.exe gs386.exe
  57.     tar -b1 -cf _temp_.t -uexe gs.exe gs386.exe
  58.     compress -i _temp_.t
  59.     if exist tar0.z erase tar0.z
  60.     rename _temp_.txz tar0.z
  61.  
  62. tar1.z: \cp.bat \rm.bat bdftops.bat font2c.bat pfbtogs.bat
  63.     copy \cp.bat
  64.     copy \rm.bat
  65.     tar -b1 -cf _temp_.t -ubat g*.asm i*.asm gs*.bat cp.bat bdftops.bat font2c.bat pfbtogs.bat rm.bat
  66.     compress -i _temp_.t
  67.     rm tar1.z
  68.     rename _temp_.txz tar1.z
  69.  
  70. tar2.z: ansi2knr.c checkall ega.c trace.c uniq.c utrace.c
  71.     tar -b1 -cf _temp_.t ansi2knr.c checkall ega.c trace.c uniq.c utrace.c
  72.     compress -i _temp_.t
  73.     rm tar2.z
  74.     rename _temp_.txz tar2.z
  75.  
  76. tar3a.z: gs.c
  77.     tar -b1 -cf _temp_.t gs*.c
  78.     compress -i _temp_.t
  79.     rm tar3a.z
  80.     rename _temp_.txz tar3a.z
  81.  
  82. tar3b.z: gxfill.c
  83.     tar -b1 -cf _temp_.t gx*.c
  84.     compress -i _temp_.t
  85.     rm tar3b.z
  86.     rename _temp_.txz tar3b.z
  87.  
  88. tar3c.z: gconfig.c genarch.c
  89.     tar -b1 -cf _temp_.t gdev*.c gp_*.c gconfig.c genarch.c
  90.     compress -i _temp_.t
  91.     rm tar3c.z
  92.     rename _temp_.txz tar3c.z
  93.  
  94. tar4a.z: interp.c stream.c turboc.cfg history.doc
  95.     tar -b1 -cf _temp_.t i*.c s*.c turboc.cfg *.doc
  96.     compress -i _temp_.t
  97.     rm tar4a.z
  98.     rename _temp_.txz tar4a.z
  99.  
  100. tar4b.z: zarith.c
  101.     tar -b1 -cf _temp_.t z*.c
  102.     compress -i _temp_.t
  103.     rm tar4b.z
  104.     rename _temp_.txz tar4b.z
  105.  
  106. tar5.z: gs.h gs.mak
  107.     tar -b1 -cf _temp_.t *.h *.mak *.man *.sh *.tr tar_*.
  108.     compress -i _temp_.t
  109.     rm tar5.z
  110.     rename _temp_.txz tar5.z
  111.  
  112. tar6.z: gs_init.ps uglyr.gsf
  113.     tar -b1 -cf _temp_.t *.ps ugly*.*
  114.     compress -i _temp_.t
  115.     rm tar6.z
  116.     rename _temp_.txz tar6.z
  117.  
  118. tar7.z: fontmap license readme bdftops font2c pfbtogs ccgs echoq
  119.     tar -b1 -cf _temp_.t fontmap license readme bdftops font2c pfbtogs gs*. ccgs echoq
  120.     compress -i _temp_.t
  121.     rm tar7.z
  122.     rename _temp_.txz tar7.z
  123.  
  124. # ---------------- Make MS-DOS diskette sets ----------------
  125. # We have to juggle things carefully to make the files fit.
  126.  
  127. diskette diskset:
  128.     make diskette1
  129.     make diskette2
  130.     make diskette3
  131.     @echo ---------------- Done. ----------------
  132.  
  133. # ------ Here are the ZIP files that go onto the diskettes. ------
  134.  
  135. gsexe.zip: gs.exe gs386.exe
  136.     if exist gsexe.zip erase gsexe.zip
  137.     pkzip gsexe.zip gs.exe gs386.exe \watc\bin\dos4gw.exe
  138.  
  139. gsfiles.zip: bdftops.bat
  140.     if exist _temp_.zip erase _temp_.zip
  141.     pkzip _temp_.zip gs*.bat bdftops.bat font2c.bat pfbtogs.bat *.doc
  142.     pkzip -a _temp_.zip *.ps fontmap license readme bdftops font2c pfbtogs
  143.     pkzip -d _temp_.zip q* q*.* t.* comp1.*
  144.     if exist gsfiles.zip erase gsfiles.zip
  145.     rename _temp_.zip gsfiles.zip
  146.  
  147. gsfonts1.zip: fonts\ptmr.gsf
  148.     if exist gsfonts1.zip erase gsfonts1.zip
  149.     pkzip gsfonts1.zip fonts\p*.gsf
  150.  
  151. gsfonts2.zip: hershey\hrsy_r.gsf
  152.     if exist _temp_.zip erase _temp_.zip
  153.     pkzip _temp_.zip hershey\*.gsf
  154.     pkzip -a _temp_.zip fonts\b*.gsf fonts\z*.gsf fonts\*.pfa
  155.     if exist gsfonts2.zip erase gsfonts2.zip
  156.     rename _temp_.zip gsfonts2.zip
  157.  
  158. gssrc1.zip: gs.c
  159.     if exist _temp_.zip erase _temp_.zip
  160.     pkzip _temp_.zip g*.c i*.c s*.c z*.c
  161.     pkzip -d _temp_.zip zlzw*.c slzw*.c comp1.*
  162.     if exist gssrc1.zip erase gssrc1.zip
  163.     rename _temp_.zip gssrc1.zip
  164.  
  165. gssrc2.zip: ansi2knr.c
  166.     if exist _temp_.zip erase _temp_.zip
  167.     pkzip _temp_.zip \rm.bat \cp.bat
  168.     pkzip -a _temp_.zip g*.asm i*.asm
  169.     pkzip -a _temp_.zip ansi2knr.c ega.c trace.c uniq.c utrace.c turboc.cfg
  170.     pkzip -a _temp_.zip *.h *.mak *.man *.sh *.tr tar_*. ugly*.*
  171.     pkzip -a _temp_.zip gs*. ccgs echoq
  172.     pkzip -d _temp_.zip arch.h gconfig.h obj*.tr lib*.tr _temp*.*
  173.     pkzip -d _temp_.zip ugly*.bdf libc*.tr q* q*.* t.* comp1.*
  174.     if exist gssrc2.zip erase gssrc2.zip
  175.     rename _temp_.zip gssrc2.zip
  176.  
  177. # ------ Now the actual contents of the diskettes. ------
  178.  
  179. diskette1: readme.1st gsexe.zip gsfiles.zip gssrc1.zip
  180.     @askdisk 1
  181.     chkdsk $(DRIVE)
  182.     echo $(LABEL)_1$3 >_temp_
  183.     label $(DRIVE) <_temp_
  184.     xcopy readme.1st $(DRIVE) /v
  185.     xcopy \utils\pkunzip.exe $(DRIVE) /v
  186.     xcopy gsexe.zip $(DRIVE) /v
  187.     xcopy gsfiles.zip $(DRIVE) /v
  188.     xcopy gssrc1.zip $(DRIVE) /v
  189.     dir $(DRIVE)
  190.  
  191. diskette2: gsfonts1.zip
  192.     @askdisk 2
  193.     echo $(LABEL)_2$3 >_temp_
  194.     label $(DRIVE) <_temp_
  195.     xcopy gsfonts1.zip $(DRIVE) /v
  196.     dir $(DRIVE)
  197.  
  198. diskette3: gsfonts2.zip gssrc2.zip
  199.     @askdisk 3
  200.     echo $(LABEL)_3$3 >_temp_
  201.     label $(DRIVE) <_temp_
  202.     xcopy gssrc2.zip $(DRIVE) /v
  203.     xcopy gsfonts2.zip $(DRIVE) /v
  204.     dir $(DRIVE)
  205.